 /* css 变量定页面主题色 */
 :root {    
    /* 主题色: */
    --color-main: #f6f8fa;
    /* 链接色: */
    --color-link: #0366d6;
    /* 左侧悬浮栏面板 */
    --color-barleft-: #24292e;
    /* 左侧悬浮栏面板文字 */
    --color-barleft-text:rgba(255,255,255,0.7);

    /* 性格列表边框颜色 */
    --color-character-border:rgba(255,255,255,0.2);
    --color-character-hover-border:rgba(184, 179, 179, 0.3);
    --color-character-name: #c5c6c8;
    --color-character-time: #9b9da0;
    --color-character-desc: #898a8c;
    --color-character-active-bg: rgba(96, 94, 94, 0.4);    
    --color-character-bg: rgb(88 84 84 / 19%);;
    --color-character-scrollbar-thumb: #6e6f6f;

    /* 气泡样式 */
    --color-bubble-bg-left: #f6f8fa;    
    --color-bubble-text-left: #222;    
    --color-bubble-bg-right: #95EC69;
    --color-bubble-text-right: #222;
    /* 时间气泡 */
    --color-bubble-time-bg: #aeb3b9;
    --color-bubble-time-text: #fff;

    --markdown-pre-bg: #ffffff;

    /* 回到底部按钮 */
    --color-btn-gotobottom-color: #666;   
    --color-btn-gotobottom-hover-color: rgb(34, 34, 34); 
    --color-btn-gotobottom-bg: #f6f8fa;

    /* 悬浮菜单样式 */
    --color-menu-bg: #24292e;
    --color-menu-hover-bg: rgb(66, 65, 65);
    --color-menu-color: #c5c6c8;
    --color-menu-hover-color: #23ae4b;


    /* 普通按钮 */
    --color-btn-primary-bg: #2da44e;
    --color-btn-primary-border: rgba(27,31,36,0.15);
    --color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,0.1);
    --color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    --color-btn-primary-hover-bg: #2c974b;
    --color-btn-primary-hover-border: rgba(27,31,36,0.15);
    --color-btn-primary-selected-bg: hsla(137,55%,36%,1);
    --color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,0.2);
    --color-btn-primary-disabled-text: rgba(255,255,255,0.8);
    --color-btn-primary-disabled-bg: #94d3a2;
    --color-btn-primary-disabled-border: rgba(27,31,36,0.15);
    --color-btn-primary-focus-bg: #2da44e;
    --color-btn-primary-focus-border: rgba(27,31,36,0.15);
    --color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,0.4);
    --color-btn-primary-icon: rgba(255,255,255,0.8);
    --color-btn-primary-counter-bg: rgba(255,255,255,0.2);
    --color-btn-primary-text: #ffffff;
    --color-btn-primary-disabled-text: rgba(255,255,255,0.8);
    --color-btn-primary-disabled-bg: #94d3a2;
    --color-btn-primary-disabled-border: rgba(27,31,36,0.15);

    /* 通用按钮 */
    --color-btn-bg: #f6f8fa;
    --color-btn-border: rgba(27,31,36,0.15);
    --color-btn-shadow: 0 1px 0 rgba(27,31,36,0.04);
    --color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
    --color-btn-hover-bg: #f3f4f6;
    --color-btn-hover-border: rgba(27,31,36,0.15);
    --color-btn-active-bg: hsla(220,14%,93%,1);
    --color-btn-active-border: rgba(27,31,36,0.15);
    --color-btn-selected-bg: hsla(220,14%,94%,1);
    --color-btn-focus-bg: #f6f8fa;
    --color-btn-focus-border: rgba(27,31,36,0.15);
    --color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,0.3);
    --color-btn-shadow-active: inset 0 0.15em 0.3em rgba(27,31,36,0.15);
    --color-btn-shadow-input-focus: 0 0 0 0.2em rgba(9,105,218,0.3);
    --color-btn-counter-bg: rgba(27,31,36,0.08);

    /* 简约按钮 */
    --color-btn-brief-color: #666;
    --color-btn-brief-color-hover: #2db72d;
}

/* 滚动条样式,模拟手机效果 */
::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: transparent;    
}
::-webkit-scrollbar-thumb {
    border-radius: 3px;
    /* -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2); */
    background: #dfdddd;
    cursor: pointer;
}
::-webkit-scrollbar-track {
    /* -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2); */
    border-radius: 0;
    background: transparent;
}


/* 按钮 */

.btn {
    transition: 80ms cubic-bezier(0.33, 1, 0.68, 1);
    transition-property: color,background-color,box-shadow,border-color;

    position: relative;
    display: inline-block;
    padding: 5px 16px;
    font-size: 14px;
    font-weight: var(--base-text-weight-medium, 500);
    line-height: 20px;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    border: 1px solid;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    border-color: var(--color-btn-border);        
}

.btn:hover, .btn.hover{
    background-color: var(--color-btn-hover-bg);
    border-color: var(--color-btn-hover-border);
    transition-duration: .1s;
}

.btn-primay {
    background-color: var(--color-btn-primary-bg);
    border-color: var(--color-btn-primary-border);
    /* box-shadow: var(--color-btn-primary-shadow),var(--color-btn-primary-inset-shadow); */
    color: var(--color-btn-primary-text);    
}

.btn-primay:hover{
    background-color: var(--color-btn-primary-hover-bg);
    border-color: var(--color-btn-primary-hover-border);
}

.btn-brief{
    background-color: transparent;
    border-color: transparent;
    color: var(--color-btn-brief-color);
    transition: 80ms cubic-bezier(0.33, 1, 0.68, 1);
}

.btn-brief:hover{
    background-color: transparent;
    border-color: transparent;
    color: var(--color-btn-brief-color-hover);
}

/* 悬浮菜单 */

.ul-context-menu {
	list-style: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999;
	padding: 5px 0;
	min-width: 80px;
	margin: 0;
	display: none;	
	font-size: 14px;
	background-color: #fff;
	border: 1px solid rgba(0, 0, 0, .15);
	box-sizing: border-box;
	border-radius: 4px;
	-webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	-moz-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	-ms-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	-o-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ul-context-menu .ui-context-menu-item {
	margin: 0;
	padding: 0;
}

.ul-context-menu .ui-context-menu-item a {
	display: block;
	padding: 0 10px;
	color: #333;
	white-space: nowrap;
	text-decoration: none;    
}

.ul-context-menu .ui-context-menu-item a:hover {
	text-decoration: none;
	color: #262626;
}

.ul-context-menu .ui-context-menu-item .icon {
	width: 16px;
	height: 16px;
	margin-right: 8px;	
	border: 0;
    line-height: 16px;
}



.chat-view .layer-msg{
    position: absolute;     
    min-width: 100px;
    filter: alpha(opacity=60);
    background-color: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    height: 40px;
    left: 0;
    top: 0;
    text-align: center;
    padding: 10px 20px;
    border-radius: 3px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10086;
}

.chat-view .layer-msg.show{    
    animation: layer-bounceIn .2s;
}

.chat-view .layer-msg.close{
    /* 执行后不恢复 */
    animation: layer-bounceOut .2s forwards;
}

.chat-view .layer-msg .msg{
    line-height: inherit;
    font-size: 0.9em;
}

@keyframes layer-bounceOut {
    100% {
        opacity: 0;
        -webkit-transform: scale(.7);
        -ms-transform: scale(.7);
        transform: scale(.7)
    }

    30% {
        -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
        transform: scale(1.05)
    }

    0% {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1)
    }
}

@keyframes layer-bounceIn {
    0% {
        opacity: 0;
        -webkit-transform: scale(.5);
        -ms-transform: scale(.5);
        transform: scale(.5)
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1)
    }
}
